<template>
  <view class="charts-box">
    <qiun-data-charts
      :type="type"
      :localdata="chartData"
      :groupEnum="groupEnum"
      :opts="opts"
    />
  </view>
</template>

<script>
export default {
  components: {},
  props: {
    chartData: {
      type: Array,
      default: []
    },
    type: {
      type: String,
      default: "line"
    },
    opts: {
      type: Object,
      default: () => {
        return {
          color: [
            "#7cd6cf",
            "#76da91",
            "#63b2ee",

            "#f8cb7f",
            "#f89588",

            "#9192ab"
          ],
        //   yAxis:{disableGrid:false,data:[{min:0}]},
          
        };
      }
    }
  },
  data() {
    return {
      groupEnum: [
        {
          value: "value",
          text: "label"
        }
      ]
    };
  },
  created() {},
  mounted() {},
  methods: {}
};
</script>
<style lang="scss" scoped>
</style>